<template>
	<view class="content">
		<view :style="{height: systemBarHeight + 'px'}">
		</view>
		<view class="navbar">
			<text>我 的</text>
		</view>
		<view class="user">
			<image src="/static/logo.png" mode=""></image>
			<text>王佳乐</text>
		</view>
		
		<view class="card">
			<view class="cardlf" @click="xzsubmit()">
				<view class="cardlf1">
					<image src="/static/jl/gongzi.png" mode=""></image>
					<text>工资</text>
				</view>
				<view class="cardlf2">
					￥<text>19888</text>
				</view>
				<view class="cardlf3">
					<text>工资</text>
				</view>
			</view>
			<view class="cardrg">
				<view class="cardrg1">
					<image src="/static/jl/hege.png" mode=""></image>
					<text>合格率</text>
				</view>
				<view class="cardrg2">
					<view class="cardrg2_item">
						<text class="lv">95%</text>
						<text class="km">科目二</text>
					</view>
					<view class="cardrg2_item">
						<text class="lv">95%</text>
						<text class="km">科目二</text>
					</view>
				</view>
			</view>
		</view>
		
		<view class="list">
			<view class="list_item" @click="listchange(1)">
				<view class="list_item_lf">
					<image src="/static/jl/xueyuan.png" mode=""></image>
					<text>我的学员</text>
				</view>
				<view class="list_item_rg">
					<image src="/static/xy/ck2.png" mode=""></image>
				</view>
			</view>
			<view class="list_item"  @click="listchange(2)">
				<view class="list_item_lf">
					<image src="/static/jl/shiyongfei.png" mode=""></image>
					<text>使用费</text>
				</view>
				<view class="list_item_rg">
					<image src="/static/xy/ck2.png" mode=""></image>
				</view>
			</view>
			<view class="list_item"  @click="listchange(3)">
				<view class="list_item_lf">
					<image src="/static/jl/password.png" mode=""></image>
					<text>修改密码</text>
				</view>
				<view class="list_item_rg">
					<image src="/static/xy/ck2.png" mode=""></image>
				</view>
			</view>
		</view>
		
		<view class="exit">
			<text>退出登录</text>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'mine',
		data() {
			return {
				systemBarHeight: 0,
			}
		},
		mounted() {
			/* 手机顶部高度 */
			this.getSysteminfo()
		},
		methods: {
			/* 手机顶部高度 */
			getSysteminfo() {
				uni.getSystemInfo({
					success: res => {
						this.systemBarHeight = res.statusBarHeight;
					}
				});
			},
			listchange(i){
				console.log(i)
				
				if(i==1){
					uni.navigateTo({
						url:'/pagesA/my_stu'
					})
				}
				if(i==2){
					uni.navigateTo({
						url:'/pagesA/fee'
					})
					
				}if(i==3){
					
				}
			},
			xzsubmit(){
				uni.navigateTo({
					url:'/pagesA/my_salary'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		width: 750rpx;
		height: 1624rpx;
		background: linear-gradient(180deg, #ECFFF8 0%, #F8F8F8 100%);
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}
	.navbar{
		height: 88rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 600;
		font-size: 34rpx;
		color: #43484D;
		display: flex;align-items: center;justify-content: center;
	}
	.user{
		width: 93%;
		margin: 32rpx auto 0;
		display: flex;
		align-items: center;
		>image{
			width: 112rpx;
			height: 112rpx;
			border-radius: 56rpx ;
		}
		>text{
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 34rpx;
			color: #43484D;
			margin-left: 22rpx;
		}
	}
	.card{
		width: 93%;
		margin: 48rpx auto 0;
		display: flex;
		justify-content: space-between;
		.cardlf{
			width: 240rpx;
			height: 192rpx;
			background: linear-gradient( 222deg, #E8FFF6 0%, #FFFFFF 100%);
			box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(36,120,88,0.1);
			border-radius: 16rpx 16rpx 16rpx 16rpx;
			.cardlf1{
				display: flex;
				align-items: center;
				padding-top: 28rpx;
				>image{
					width: 32rpx;
					height: 32rpx;
					margin-left: 24rpx;
				}
				>text{
					margin-left: 8rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					font-size: 28rpx;
					color: #43484D;
				}
			}
			.cardlf2{
				margin-top: 16rpx;
				margin-left: 40rpx;
				>text{
					font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
					font-weight: 500;
					font-size: 40rpx;
					color: #43484D;
				}
				font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
				font-weight: 500;
				font-size: 28rpx;
				color: #43484D;
			}
			.cardlf3{
				margin-left: 40rpx;
				margin-top: 8rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 24rpx;
				color: #7D7E81;
			}
		}
		.cardrg{
			width: 430rpx;
			height: 192rpx;
			background: linear-gradient( 222deg, #E8FFF6 0%, #FFFFFF 100%);
			box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(36,120,88,0.1);
			border-radius: 16rpx 16rpx 16rpx 16rpx;
			
			.cardrg1{
				display: flex;
				align-items: center;
				padding-top: 28rpx;
				>image{
					width: 32rpx;
					height: 32rpx;
					margin-left: 24rpx;
				}
				>text{
					margin-left: 8rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					font-size: 28rpx;
					color: #43484D;
				}
			}
			.cardrg2{
				display: flex;
				margin-left: 40rpx;
				margin-top: 20rpx;
				.cardrg2_item{
					display: flex;
					flex-direction: column;
					margin-right: 130rpx;
					.lv{
						font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
						font-weight: 500;
						font-size: 40rpx;
						color: #43484D;
						margin: auto;
					}
					.km{
						font-family: PingFang SC, PingFang SC;
						font-weight: 400;
						font-size: 24rpx;
						color: #7D7E81;
						margin: 8rpx auto 0;
						
					}
				}
			}
		}
	}
	.list{
		width: 93%;
		margin: 34rpx auto 0;
		
		background: #FFFFFF;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		padding-top: 32rpx;
		
		.list_item{
			width: 92%;
			margin: 0 auto 32rpx;
			padding-bottom: 32rpx;
			display: flex;align-items: center;justify-content: space-between;
			.list_item_lf{
				display: flex;
				align-items: center;
				>image{
					width: 40rpx;
					height: 40rpx;
				}
				>text{
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					font-size: 28rpx;
					color: #43484D;
					margin-left: 8rpx;
				}
			}
			.list_item_rg{
				>image{
					width: 24rpx;
					height: 24rpx;
				}
			}
		}
	}
	.exit{
		
		margin-top: 302rpx;
		display: flex;
		justify-content: center;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		font-size: 32rpx;
		color: #696969;
	}
</style>